<style>
    .layui-form-label {
        width: 70px;
    }

    .layui-input-block {
        margin-left: 100px;
    }

    .layui-form-pane .layui-form-label {
        display: flex;
        align-items: center;
        justify-content: center;
    }
</style>
<div class="layuimini-container">
    <div class="layuimini-main" id="app">


        <div class="layui-tab layui-tab-card" style="min-height: 660px">

            <ul class="layui-tab-title">
                <li class="layui-this">显示控制</li>
                <li>投稿设置</li>
                <li>自定义URL</li>
            </ul>
            <div class="layui-tab-content layui-form" style="height: 150px;">

                    <input type="hidden" name="field" value="article">
                    <div class="layui-tab-item layui-show">


                        <div class="layui-row">
                            <div class="layui-col-md4">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">最近更新不显示的栏目</label>
                                    <div class="layui-input-block">
                                        <div data-xmSelect="not_showed_in_news"
                                             data-value="{:sysconfig('article.not_showed_in_news')}"></div>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-md2">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">最近更新每页数量</label>
                                    <div class="layui-input-block">
                                        <input type="number" name="newarticle_perpage"
                                               value="{:sysconfig('article.newarticle_perpage')}"
                                               autocomplete="off" class="layui-input">
                                    </div>
                                </div>

                            </div>
                            <div class="layui-col-md2">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">最近更新显示页数</label>
                                    <div class="layui-input-block">
                                        <input type="number" name="newarticle_page"
                                               value="{:sysconfig('article.newarticle_page')}"
                                               autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-md2">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">首页轮播显示</label>
                                    <div class="layui-input-block">
                                        <input type="hidden" name="home_carousel_open" value="0">
                                        <input type="checkbox" name="home_carousel_open" value="1" {if sysconfig('article.home_carousel_open') eq 1} checked {/if} lay-skin="switch" lay-text="开|关">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-md2">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">轮播板块显示数量</label>
                                    <div class="layui-input-block">
                                        <input type="number" name="carousel_num"
                                               value="{:sysconfig('article.carousel_num')}"
                                               autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                            </div>

                        </div>





                        <div class="layui-row">
                            <div class="layui-col-md2">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">首页板块一的名称</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="homepage_plate_name1"
                                               value="{:sysconfig('article.homepage_plate_name1')}"
                                               autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-md2">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">子分类显示条数</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="homepage_plate_perpage1"
                                               value="{:sysconfig('article.homepage_plate_perpage1')}"
                                               autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-md8">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">首页板块一的栏目</label>
                                    <div class="layui-input-block">
                                        <div data-xmSelect="homepage_plate_cates1"
                                             data-value="{:sysconfig('article.homepage_plate_cates1')}"></div>

                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="layui-row">
                            <div class="layui-col-md2">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">首页板块二的名称</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="homepage_plate_name2"
                                               value="{:sysconfig('article.homepage_plate_name2')}"
                                               autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-md2">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">子分类显示条数</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="homepage_plate_perpage2"
                                               value="{:sysconfig('article.homepage_plate_perpage2')}"
                                               autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-md8">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">首页板块二的栏目</label>
                                    <div class="layui-input-block">
                                        <div data-xmSelect="homepage_plate_cates2"
                                             data-value="{:sysconfig('article.homepage_plate_cates2')}"></div>

                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="layui-row">
                            <div class="layui-col-md2">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">首页板块三的名称</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="homepage_plate_name3"
                                               value="{:sysconfig('article.homepage_plate_name3')}"
                                               autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-md2">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">子分类显示条数</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="homepage_plate_perpage3"
                                               value="{:sysconfig('article.homepage_plate_perpage3')}"
                                               autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-md8">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">首页板块三的栏目</label>
                                    <div class="layui-input-block">
                                        <div data-xmSelect="homepage_plate_cates3"
                                             data-value="{:sysconfig('article.homepage_plate_cates3')}"></div>

                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="layui-row">
                            <div class="layui-col-md2">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">浏览量显示</label>
                                    <div class="layui-input-block">
                                        <input type="hidden" name="show_views" value="0">
                                        <input type="checkbox" name="show_views" value="1" {if sysconfig('article.show_views')
                                        eq 1} checked {/if} lay-skin="switch" lay-text="开|关">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-md2">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">评论数显示</label>
                                    <div class="layui-input-block">
                                        <input type="hidden" name="show_comments" value="0">
                                        <input type="checkbox" name="show_comments" value="1" {if sysconfig('article.show_comments')
                                        eq 1} checked {/if} lay-skin="switch" lay-text="开|关">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-md2">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">点赞显示</label>
                                    <div class="layui-input-block">
                                        <input type="hidden" name="show_praises" value="0">
                                        <input type="checkbox" name="show_praises" value="1" {if sysconfig('article.show_praises')
                                        eq 1} checked {/if} lay-skin="switch" lay-text="开|关">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="layui-row">
                            <div class="layui-col-md2">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">列表页显示广告文章</label>
                                    <div class="layui-input-block">
                                        <input type="hidden" name="show_ad_article" value="0">
                                        <input type="checkbox" name="show_ad_article" value="1" {if sysconfig('article.show_ad_article')
                                        eq 1} checked {/if} lay-skin="switch" lay-text="开|关">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-md2">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">首页显示排行数</label>
                                    <div class="layui-input-block">
                                        <input type="number" name="homepage_hot_show"
                                               value="{:sysconfig('article.homepage_hot_show')}"
                                               autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-md2">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">详情页显示排行数</label>
                                    <div class="layui-input-block">
                                        <input type="number" name="detail_hot_show"
                                               value="{:sysconfig('article.detail_hot_show')}"
                                               autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-md2">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">列表页显示文章数</label>
                                    <div class="layui-input-block">
                                        <input type="number" name="list_limit"
                                               value="{:sysconfig('article.list_limit')}"
                                               autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-md2">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">热门标签显示数</label>
                                    <div class="layui-input-block">
                                        <input type="number" name="tag_hot_show"
                                               value="{:sysconfig('article.tag_hot_show')}"
                                               autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-md2">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">封面图片压缩最长边</label>
                                    <div class="layui-input-block">
                                        <input type="number" name="cover_thumb_max"
                                               value="{:sysconfig('article.cover_thumb_max')}"
                                               autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">文章详情页版权说明</label>
                            <div class="layui-input-block">
                                <textarea class="layui-textarea" name="copyright_notice">{:sysconfig('article.copyright_notice')}</textarea>

                            </div>
                        </div>


                    </div>
                    <div class="layui-tab-item">
                        <div class="layui-row">
                            <div class="layui-col-md2">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">在线投稿</label>
                                    <div class="layui-input-block">
                                        <input type="hidden" name="open_poster" value="0">
                                        <input type="checkbox" name="open_poster" value="1" {if sysconfig('article.open_poster')
                                        eq 1} checked {/if} lay-skin="switch" lay-text="开|关">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-md2">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">上传附件</label>
                                    <div class="layui-input-block">
                                        <input type="hidden" name="allow_upload" value="0">
                                        <input type="checkbox" name="allow_upload" value="1" {if sysconfig('article.allow_upload')
                                        eq 1} checked {/if} lay-skin="switch" lay-text="开|关">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-md2">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">投稿奖励</label>
                                    <div class="layui-input-block">
                                        <input type="hidden" name="award_poster" value="0">
                                        <input type="checkbox" name="award_poster" value="1" {if sysconfig('article.award_poster')
                                        eq 1} checked {/if} lay-skin="switch" lay-text="开|关">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-md2">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">投稿间隔(分钟)</label>
                                    <div class="layui-input-block">
                                        <input type="number" name="post_interval"
                                               value="{:sysconfig('article.post_interval')}"
                                               autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-md2">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">单用户每天可投稿数</label>
                                    <div class="layui-input-block">
                                        <input type="number" name="user_day_max"
                                               value="{:sysconfig('article.user_day_max')}"
                                               autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-md2">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">同一IP每天可投稿数</label>
                                    <div class="layui-input-block">
                                        <input type="number" name="ip_day_max"
                                               value="{:sysconfig('article.ip_day_max')}"
                                               autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-md6">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">不参与投稿的栏目</label>
                                    <div class="layui-input-block">
                                        <div data-xmSelect="cannot_contribute"
                                             data-value="{:sysconfig('article.cannot_contribute')}"></div>

                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-md6">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">投稿拒绝时回复的模板</label>
                                    <div class="layui-input-block">
                                <textarea class="layui-textarea"
                                          name="refuse_tpl">{:sysconfig('article.refuse_tpl')}</textarea>

                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">图片本地化</label>
                            <div class="layui-input-block">
                                <input type="radio" name="downpic" value="0" title="默认" {if condition="sysconfig('article.downpic') eq 0" }checked{/if}>
                                <input type="radio" name="downpic" value="1" title="本地化" {if condition="sysconfig('article.downpic') eq 1" }checked{/if}>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">奖励代付打款</label>
                            <div class="layui-input-block">
                                <input type="radio" name="award_daifu" value="0" title="关闭" {if condition="sysconfig('article.award_daifu') eq 0" }checked{/if}>
                                <input type="radio" name="award_daifu" value="1" title="类森代付" {if condition="sysconfig('article.award_daifu') eq 1" }checked{/if}>
<!--                                <input type="radio" name="award_daifu" value="2" title="支付宝官方" {if condition="sysconfig('article.award_daifu') eq 2" }checked{/if}>-->
                            </div>
                            <div class="tips">需要开通类森代付请联系云阳QQ 278198348，费率2%，首次充值100元即可免费开通。</div>
                        </div>
                    </div>
                    <div class="layui-tab-item">
                    <div class="layui-row">
                        <div class="layui-col-md3">
                            <div class="layui-form-item">
                                <label class="layui-form-label">栏目列表页</label>
                                <div class="layui-input-block">
                                    <select name="list_url_mode"  lay-filter="list_url_mode">
                                        <?php $mode=sysconfig('article.list_url_mode'); ?>
                                        <option value="0" {if $mode eq 0}selected{/if}>默认(list/id.html)</option>
                                        <option value="1" {if $mode eq 1}selected{/if}>读取alias(list/alias.html)</option>
                                        <option value="2" {if $mode eq 2}selected{/if}>直接alias(alias.html)</option>
                                        <option value="3" {if $mode eq 3}selected{/if}>自定义前缀+id</option>
                                        <option value="4" {if $mode eq 4}selected{/if}>自定义前缀+alias</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md3">
                            <div class="layui-form-item">
                                <label class="layui-form-label">列表页自定义前缀</label>
                                <div class="layui-input-block">
                                    <input type="text" name="list_url_prefix"
                                           value="{:sysconfig('article.list_url_prefix')}"
                                           autocomplete="off" class="layui-input">
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md3">
                            <div class="layui-form-item">
                                <label class="layui-form-label">详情页</label>
                                <div class="layui-input-block">
                                    <select name="detail_url_mode"  lay-filter="detail_url_mode">
                                        <?php $mode=sysconfig('article.detail_url_mode'); ?>
                                        <option value="0" {if $mode eq 0}selected{/if}>默认(html/id.html)</option>
                                        <option value="1" {if $mode eq 1}selected{/if}>继承列表页的ailas/id.html</option>
                                        <option value="2" {if $mode eq 2}selected{/if}>直接id.html</option>
                                        <option value="3" {if $mode eq 3}selected{/if}>自定义前缀+id</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md3">
                            <div class="layui-form-item">
                                <label class="layui-form-label">详情页自定义前缀</label>
                                <div class="layui-input-block">
                                    <input type="text" name="detail_url_prefix"
                                           value="{:sysconfig('article.detail_url_prefix')}"
                                           autocomplete="off" class="layui-input">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                    <div class="submit-info text-center">
                        <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm"
                                lay-submit="system.config/save" data-refresh="false">确认
                        </button>
                        <a class="layui-btn layui-btn-primary layui-btn-sm" layform-close>关闭</a>
                    </div>

            </div>
        </div>


    </div>
</div>
